package com.example.demo.service.impl;

import com.example.demo.entity.TimeSheet;
import com.example.demo.mapper.TimeSheetMapper;
import com.example.demo.service.TimeSheetService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;

@Service
public class TimeSheetServiceImpl implements TimeSheetService {

    @Autowired
    TimeSheetMapper timeSheetMapper;


    @GetMapping("/timeSheet")
    public List<TimeSheet> select(){
        return timeSheetMapper.select();
    }
}
